/*
 * XML Type:  XFile
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XFile
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget.impl;
/**
 * An XML XFile(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public class XFileImpl extends com.seedwill.xul.widget.impl.XInputImpl implements com.seedwill.xul.widget.XFile
{
    private static final long serialVersionUID = 1L;
    
    public XFileImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FILEPATH$0 = 
        new javax.xml.namespace.QName("", "filePath");
    private static final javax.xml.namespace.QName DEFAULTFILEPATH$2 = 
        new javax.xml.namespace.QName("", "defaultFilePath");
    private static final javax.xml.namespace.QName MUTIPLE$4 = 
        new javax.xml.namespace.QName("", "mutiple");
    private static final javax.xml.namespace.QName ISDIRECTORY$6 = 
        new javax.xml.namespace.QName("", "isDirectory");
    
    
    /**
     * Gets the "filePath" element
     */
    public java.lang.String getFilePath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FILEPATH$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "filePath" element
     */
    public org.apache.xmlbeans.XmlString xgetFilePath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FILEPATH$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "filePath" element
     */
    public void setFilePath(java.lang.String filePath)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FILEPATH$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FILEPATH$0);
            }
            target.setStringValue(filePath);
        }
    }
    
    /**
     * Sets (as xml) the "filePath" element
     */
    public void xsetFilePath(org.apache.xmlbeans.XmlString filePath)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FILEPATH$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FILEPATH$0);
            }
            target.set(filePath);
        }
    }
    
    /**
     * Gets the "defaultFilePath" element
     */
    public java.lang.String getDefaultFilePath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DEFAULTFILEPATH$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "defaultFilePath" element
     */
    public org.apache.xmlbeans.XmlString xgetDefaultFilePath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DEFAULTFILEPATH$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "defaultFilePath" element
     */
    public void setDefaultFilePath(java.lang.String defaultFilePath)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DEFAULTFILEPATH$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DEFAULTFILEPATH$2);
            }
            target.setStringValue(defaultFilePath);
        }
    }
    
    /**
     * Sets (as xml) the "defaultFilePath" element
     */
    public void xsetDefaultFilePath(org.apache.xmlbeans.XmlString defaultFilePath)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DEFAULTFILEPATH$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DEFAULTFILEPATH$2);
            }
            target.set(defaultFilePath);
        }
    }
    
    /**
     * Gets the "mutiple" element
     */
    public boolean getMutiple()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MUTIPLE$4, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "mutiple" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetMutiple()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(MUTIPLE$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "mutiple" element
     */
    public void setMutiple(boolean mutiple)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MUTIPLE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MUTIPLE$4);
            }
            target.setBooleanValue(mutiple);
        }
    }
    
    /**
     * Sets (as xml) the "mutiple" element
     */
    public void xsetMutiple(org.apache.xmlbeans.XmlBoolean mutiple)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(MUTIPLE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(MUTIPLE$4);
            }
            target.set(mutiple);
        }
    }
    
    /**
     * Gets the "isDirectory" attribute
     */
    public boolean getIsDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ISDIRECTORY$6);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "isDirectory" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetIsDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(ISDIRECTORY$6);
            return target;
        }
    }
    
    /**
     * True if has "isDirectory" attribute
     */
    public boolean isSetIsDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(ISDIRECTORY$6) != null;
        }
    }
    
    /**
     * Sets the "isDirectory" attribute
     */
    public void setIsDirectory(boolean isDirectory)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ISDIRECTORY$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ISDIRECTORY$6);
            }
            target.setBooleanValue(isDirectory);
        }
    }
    
    /**
     * Sets (as xml) the "isDirectory" attribute
     */
    public void xsetIsDirectory(org.apache.xmlbeans.XmlBoolean isDirectory)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(ISDIRECTORY$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(ISDIRECTORY$6);
            }
            target.set(isDirectory);
        }
    }
    
    /**
     * Unsets the "isDirectory" attribute
     */
    public void unsetIsDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(ISDIRECTORY$6);
        }
    }
}
